From: Richard M. Stallman Date: Wed, 20 Oct 1993 02:47:12 +0000 (+0000) Subject: [hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~94200 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=defa77b5a6eba3d57008d97a01cf757a7ddca55c;p=emacs.git [hpux 7] (_MAXLDBL, _NMAXLDBL): New macro definitions. --- diff --git a/src/data.c b/src/data.c index 9b42d83d09b..3e7a88fc7cd 100644 --- a/src/data.c +++ b/src/data.c @@ -31,9 +31,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "syssignal.h" #ifdef LISP_FLOAT_TYPE + #ifdef STDC_HEADERS #include #endif + +/* Work around a problem that happens because math.h on hpux 7 + defines two static variables--which, in Emacs, are not really static, + because `static' is defined as nothing. The problem is that they are + here, in floatfns.c, and in lread.c. + These macros prevent the name conflict. */ +#if defined (HPUX) && !defined (HPUX8) +#define _MAXLDBL data_c_maxldbl +#define _NMAXLDBL data_c_nmaxldbl +#endif + #include #endif /* LISP_FLOAT_TYPE */